<div class="block_in_wrapper">

	<h2>Edit participant</h2>
	
	<form novalidate class="main" method="post" action="admin.php?action=editparticipant" {literal}onsubmit="return validateCompleteForm(this);"{/literal}>
		<fieldset>
			<input type="hidden" id="participantID" name="participantID" value="{$participant.ID}">
			<div class="row">
				<label for="name">Name:</label>
				<input type="text" class="text" name="name" id="name" required="1" realname="Name" value="{$participant.name}"/>
			</div>

			<div class="row">
				<label for="email">E-Mail:</label>
				<input type="text" class="text" name="email" id="email" required="1" realname="E-Mail" value="{$participant.email}"/>
			</div>
			
			<div class="row">
				<label for="type">Type:</label>
				<select class="text" name="type" id="type" required="1" realname="Type">
					{foreach from=$alltypes item=type}
						{if $type.type_name == $participant.type_name}
							<option value="{$type.type_ID}" selected>{$type.type_name}</option>
						{else}
							<option value="{$type.type_ID}">{$type.type_name}</option>	
						{/if}
					{/foreach}
				</select>
			</div>

			<div class="row">
				<label for="phone">Phone:</label>
				<input type="text" class="text" name="phone" id="phone" realname="Phone" value="{$participant.phone}"/>
			</div>
			
			<div class="row">
				<label for="cellphone">Cell phone:</label>
				<input type="text" class="text" name="cellphone" id="cellphone" realname="Cell phone" value="{$participant.cellphone}"/>
			</div>

			<div class="row">
				<label for="company">Company:</label>
				<input type="text" class="text" name="company" id="company" required="1" realname="Company" value="{$participant.company}"/>
			</div>
			
			<div class="row">
				<label for="contactPerson">Contact person:</label>
				<input type="text" class="text" name="contactPerson" id="contactPerson" realname="Contact person" value="{$participant.contactPerson}"/>
			</div>
			
			
			<div class="row">
				<label for="url">URL:</label>
				<input type="text" class="text" name="url" id="url" realname="URL" value="{$participant.url}" />
			</div>
			
			<div class="clear_both_b"></div>
			
			<div class="row">
				<label for="address">Address:</label>
				<input type="text" class="text" name="address" id="address" realname="Address" value="{$participant.address}"/>
			</div>
			
			<div class="row">
				<label for="city">City:</label>
				<input type="text" class="text" name="city" id="city" realname="City" value="{$participant.city}"/>
			</div>
			
			<div class="row">
				<label for="state">State:</label>
				<input type="text" class="text" name="state" id="state" realname="State" value="{$participant.state}"/>
			</div>

			<div class="row">
				<label for="country">Country:</label>
				<input type="text" class="text" name="country" id="country" realname="Country" value="{$participant.country}"/>
			</div>

			<div class="row">
				<label for="postcode">Postcode:</label>
				<input type="text" class="text" name="postcode" id="postcode" realname="Postcode" value="{$participant.postcode}" />
			</div>
			
			<div class="clear_both_b"></div>
			
			<div class="row">
				<label for="description">Description:</label>
				<div class="editor">
					<textarea name="description" id="desc" rows="3" cols="1">{$participant.description}</textarea>
				</div>
			</div>
	
			<input type="hidden" name="assignme" value="1" />
	
		    <div class="clear_both_b"></div>
	
			<div class="row-butn-bottom">
				<label>&nbsp;</label>
				<button type="submit" onfocus="this.blur();">Edit</button>
				<button type="reset" onclick="blindtoggle('form_editparticipant');toggleClass('add_butn_participants','butn_link_active','butn_link');toggleClass('sm_participants','smooth','nosmooth');return false;" onfocus="this.blur();">Cancel</button>
			</div>
	
	
		</fieldset>
	</form>

</div> {*block_in_wrapper end*}
